<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/2/27
  Time: 14:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="" method="post">
<s:actionmessage/>


        用户名：${username}
        密码  ：${password}
    <br>
    OGNL表达式
    用户名：<s:property value="username"/>
    <br>
    密码：<s:property value="password"/>
    <%--显示出所有的用户的所有的信息？？？？--%>
        <br>
<s:iterator value="#userList">
    <table border="2">
        <tr>
            <td>id</td>
            <td>用户名</td>
            <td>密码</td>
        </tr>
        <tr>
            <td><s:property value="id"/></td>
            <td><s:property value="username"/></td>
            <td><s:property value="password"/></td>
        </tr>
    </table>
</s:iterator>
</form>
</body>
</html>
